//
//  LXEmoticon.swift
//  weibo
//
//  Created by lixin on 16/4/25.
//  Copyright © 2016年 lixin. All rights reserved.
//

import UIKit

class LXEmoticon: NSObject {
    
    //图片文字描述
    var chs: String?
    
    //图片名称
    var png: String?
    
    //emoji的十六进制的字符串
    var code: String?
    
    // 判断表情是emoji还是图片
    var isEmoji: Bool = false
    
    //全路径
    var path: String?
    
    var type: String?{
    
        didSet{
        
            if type == "0" {
                
                isEmoji = false
            
            }else{
            
                isEmoji = true
            }
        }
    }
    
    init(dict: [String: AnyObject]) {
        
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}
